import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
      username:'',
      order:[]
  },
  mutations: {
  setOrders(state,order){
    state.order = order
  },
  setUserInfo(state,username){
    state.username=username
  },
  },
  actions: {

  },
  modules: {
  }
})
